home *** CD-ROM | disk | FTP | other *** search
- Subject: Re: Scroll notification
- Sent: 7/29/96 4:05 PM
- Received: 7/29/96 4:11 PM
- From: Kirk Swenson, kswenson@keypress.com
- Reply-To: ODF Interest, ODF-Interest@CILabs.ORG
- To: OpenDoc Development Framework Discussion List, ODF-Interest@CILabs.
-
- >My part has an offscreen bitmap which I keep in synch with the onscreen
- >view. Therefore, when the user scrolls, both the onscreen view and my
- >offscreen bitmap are notified of the scroll. My problem is that the view
- >gets the notification first, before my offscreen. This creates a problem
- >because my offscreen doesn't get to draw before the onscreen view.
- >Therefore the view draws nothing (it gets it from the offscreen) in the
- >newly scrolled into view region.
-
- How about making your offscreen bitmap a notifier? Then the view
- (receiver) can be hooked to the offscreen bitmap (notifier), so that the
- notification travels: scroll bar --> offscreen bitmap --> view.
- Conceptually, the view should update (be notified) whenever the offscreen
- bitmap changes, whether or not scrolling is involved.
-
- Kirk Swenson
- Senior Software Engineer
- Key Curriculum Press
- kswenson@keypress.com
-
-
-